package myexchange

class SecurityFilters {

	def filters = {

		loginCheck(controller:'*', action:'*') {
			before = {
				if(!session.user && actionName != 'login' && actionName != 'authenticate') {
					redirect(controller:'user', action:'login')
					return false
				}
			}
		}
	}
}
